import request from '@/utils/request.js';
import store from '@/store/index.js';
// 导入store组件，让我们可以提取Vuex中保存的token

// 封装获取用户资料的接口
export const userInfo = () => {
    return request({
        url: '/v1_0/user/profile'
    })
}
// 封装修改用户资料的接口
export const editUserInfo = (data) => {
    return request({
        url: '/v1_0/user/profile',
        method: 'patch',
        data
    })
}